using Game.Framework;
using Game.Framework.FState;
using Game.Framework.UI;

namespace Game.Applcation
{
    public class StateLaunchFinish : StateMainBase
    {
        public override void Enter(StateData param)
        {
            base.Enter(param);
            
            EventBus.Send(new EventLaunchLoadingProgress((float)LoadingStep.Step9));
        }

        public override void FixedUpdate(float deltaTime)
        {
            base.FixedUpdate(deltaTime);
            if (_elapsedTime > 1f)
            {
                ChangeState<StateMainHome>(null);
            }
        }
    }
}


